package com.huangpuweb.task.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class QzSysBuildingInfoRowMapper implements RowMapper<QzSysBuildingInfo>{



	@Override
	public QzSysBuildingInfo mapRow(ResultSet rs, int rowNum) throws SQLException {
		QzSysBuildingInfo  lj= new QzSysBuildingInfo();
		lj.setUuid(rs.getString("id"));
		//lj.setId(rs.getInt("id"));
		lj.setName(rs.getString("col11"));
		lj.setAmount(rs.getDouble("col18"));
//		lj.setCycle(rs.getString("cycle"));
		lj.setArea(rs.getDouble("col22"));
		//lj.setDesign_unit(rs.getString("design_unit"));
		//lj.setContractor(rs.getString("contractor"));
		lj.setConstruction_unit(rs.getString("col3"));
		lj.setSupervision_unit(rs.getString("col3"));
		lj.setType(rs.getString("col24"));
		lj.setFeatures(rs.getString("col37"));
		lj.setPrincipal(rs.getString("col8"));
		//lj.setVideos(rs.getInt("videos"));
		lj.setAddress(rs.getString("col12"));
		//lj.setStreet(rs.getString("street"));
		//lj.setLatitude(rs.getString("Latitude"));
		//lj.setLongitude(rs.getString("Longitude"));
		lj.setCreatetime(rs.getTimestamp("col23"));
		return lj;
	}

}
